import Vue from 'vue'
import Vuex from 'vuex'

import user from './module/user'
import getters from './getters'
import system from './module/system'


// 是否为生产环境
// const isProduction = process.env.NODE_ENV === 'development'
// if (isProduction) {
  Vue.use(Vuex)
// }

export default new Vuex.Store({
  modules: {
    user,
    system
  },
  getters
})
